package com.training;

public class ConsOverloading{

	public static void main(String args[]){

		new Rectangle(2,4);
		new Rectangle(5);
		new Rectangle(2.0f);
		new Rectangle(3.0f,2.0f);

	}
}

class Rectangle{
	int l, b;
	float p, q;

	public Rectangle(int x, int y){
		System.out.println(" Area One :  " +(x*y));
	}

	public Rectangle(int x){
		System.out.println(" Area Two :  " +(x*x));
	}

	public Rectangle(float x){
		System.out.println(" Area Three :  " +(x*x));
	}

	public Rectangle(float x, float y){
		System.out.println(" Area Four :  " +(x*y));
	}
}